<!--begin sidebar right-->
<div id="sbr">
			<?php
			//  <!--begin Admin bar-->
			global $user_identity,$user_level;
			get_currentuserinfo();
			if ($user_identity) { ?>
			<ol>
			<h2><?php _e('Admin','apple4us'); ?></h2>
			<div class="sbrbar">
				<ul class="admin-bar">
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/" title="<?php _e('View the blog\'s summary','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_dashboard.png" alt="<?php _e('Dashboard','apple4us'); ?>" title="<?php _e('View the blog\'s summary','apple4us'); ?>" /><strong><?php _e('Admin','apple4us'); ?></strong></a></li>
					<?php if ($user_level >= 1) { ?>
					<?php // Get comments awaiting moderation
					$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
					?>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/post-new.php" title="<?php _e('Create a new post','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_post_new.png" alt="<?php _e('New Entry','apple4us'); ?>" title="<?php _e('Create a new post','apple4us'); ?>" /><?php _e('Post','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/page-new.php" title="<?php _e('Create a new page','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_page_new.png" alt="<?php _e('New Page','apple4us'); ?>" title="<?php _e('Create a new page','apple4us'); ?>" /><?php _e('Page','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/edit.php" title="<?php _e('Administer the entries','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_post_manage.png" alt="<?php _e('Manage Entries','apple4us'); ?>" title="<?php _e('Administer the entries','apple4us'); ?>" /><?php _e('Manage','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/link-manager.php" title="<?php _e('Administer the links','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_link_manage.png" alt="<?php _e('Links','apple4us'); ?>" title="<?php _e('Administer the links','apple4us'); ?>" /><?php _e('Links','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/upload.php" title="<?php _e('Administer the uploads','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_uploads_manage.png" alt="<?php _e('Uploads','apple4us'); ?>" title="<?php _e('Administer the uploads','apple4us'); ?>" /><?php _e('Uploads','apple4us'); ?></a></li>
					<?php } ?>
				</ul>
			</div>
			<?php if ($user_level >= 1) { ?>
			<div class="sbrbar">
				<ul class="admin-bar">
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/moderation.php" title="<?php _e('Administer the comments','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_comments.png" alt="<?php _e('Comments','apple4us'); ?>" title="<?php _e('Administer the comments','apple4us'); ?>" /><?php _e('Comment','apple4us'); ?> <?php if ( $numcomments ) : ?> (<strong><?php echo number_format($numcomments); ?></strong>)<?php endif; ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/themes.php" title="<?php _e('Change the blog\'s look and feel','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_presentation.png" alt="<?php _e('Design','apple4us'); ?>" title="<?php _e('Change the blog\'s look and feel','apple4us'); ?>" /><?php _e('Design','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/plugins.php" title="<?php _e('Administer the plugins','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_plugins.png" alt="<?php _e('Plugins','apple4us'); ?>" title="<?php _e('Administer the plugins','apple4us'); ?>" /><?php _e('Plugins','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/options-general.php" title="<?php _e('Change the blog\'s options','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_options.png" alt="<?php _e('Options','apple4us'); ?>" title="<?php _e('Change the blog\'s options','apple4us'); ?>" /><?php _e('Options','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php" title="<?php _e('Administer the users','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_users.png" alt="<?php _e('Users','apple4us'); ?>" title="<?php _e('Administer the users','apple4us'); ?>" /><?php _e('Users','apple4us'); ?></a></li>
					<li><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','apple4us'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/adminbar/icon_logout.png" alt="<?php _e('Logout','apple4us'); ?>" title="<?php _e('Logout of Wordpress','apple4us'); ?>" /><?php _e('Logout &raquo;','apple4us'); ?></a></li>
				</ul>
			</div>
			<br style="clear:left;" />
			<?php } ?>
			</ol>
			<?php } ?><!--End Admin bar-->

<ol>
<h2><?php _e('About','apple4us'); ?></h2>
<ul>

<img src="<?php bloginfo('template_directory'); ?>/images/icon_important.png"> <?php _e('Welcome to','apple4us'); ?> <strong><?php bloginfo('name'); ?></strong>.<?php _e('I am','apple4us'); ?> <strong><?php the_author() ?></strong>.<a href="/about"><?php _e('More about here','apple4us'); ?></a>...
<div class="feedicon"><!--here you can change these urls to yours-->
<a href="<?php bloginfo('rss2_url'); ?>" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/blog.png" alt="Blog" /></a>
<a href="http://del.icio.us/dupola" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/delicious.png" alt="del.icio.us" /></a>
<a href="http://www.flickr.com/photos/dupola/" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/flickr.png" alt="Flickr" /></a>
<a href="http://www.furl.net/members/dupola" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/furl.png" alt="Furl" /></a>
<a href="http://talk.google.com/" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/googletalk.png" alt="Gmail/Google Talk" /></a>
<a href="http://www.google.com/reader/shared/16800353085416011251" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/googlereader.png" alt="Google Reader" /></a>
<a href="http://www.google.com/s2/sharing/stuff?user=114131319492394168877" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/googleshared.png" alt="Google Shared Stuff" /></a>
<a href="http://www.last.fm/user/dupola/" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/lastfm.png" alt="Last.fm" /></a>
<a href="http://picasaweb.google.com/dupola" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/picasa.png" alt="Picasa Web Albums" /></a>
<a href="http://www.pownce.com/dupola/" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/pownce.png" alt="Pownce" /></a>
<a href="http://twitter.com/dupola" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/twitter.png" alt="Twitter" /></a>
<a href="http://www.youtube.com/profile?user=dupolacom" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/youtube.png" alt="YouTube" /></a>
<a href="http://www.zooomr.com/photos/dupola/" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/zooomr.png" alt="Zooomr" /></a>
<a href="http://www.douban.com/people/dupola" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/icons/douban.png" alt="douban" /></a>
</div>

</ul>
</ol>

<!--Begin Search End Search-->
<ol>
<h2><a name="search"><?php _e('Search');?></a></h2>
<ul>
<li>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
</ul>
</ol>

<!--Begin tag cloud-->
<ol>
<h2><?php _e('Tag Cloud','apple4us');?></h2>
<ul>
<li>
<?php wp_tag_cloud('smallest=8&largest=15&number=15&order=DESC'); ?>
</li>
</ul>
</ol><!--End tag cloud-->

<!--Begin Widgets Check--><?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('RightSidebar') ) : else : ?>

<?php if((is_home() )){ ?>

<!--Begin Recent Posts--><ol><h2><?php _e('Recent Posts','apple4us'); ?></h2>
<ul>
<?php
$myposts = get_posts('numberposts=6&offset=0');
foreach($myposts as $post) :
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title();
?></a></li>
<?php endforeach; ?>
</ul>
</ol><!--End Recent Posts-->

<!--Begin blogroll-->
<ol>
<?php wp_list_bookmarks('title_li=&category_before=&category_after=&category_orderby=id&category_order=ASC'); ?>
</ol><!--End blogroll-->

<?php } ?>  

<!--Begin Meta-->
<?php if((is_home() )){ ?>
<ol>
<h2><?php _e('Meta','apple4us'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
</ul>
</ol>
<?php } ?>  
<!--End Meta-->


<?php endif; ?><!--End Widgets Check-->
</div><!--End sidebar right-->